import request from '../../src/unitls/request.js'

const updataCartChecked = (data) => {
	return request.post({
		url: '/mock/updataCartChecked',
		data,
		auth: true
	})
}

const updataAddToCartNum = (data) => {
	return request.post({
		url: '/mock/updataAddToCartNum',
		data,
		auth: true
	})
}

const goodsDetail = (data) => {
	return request.post({
		url: '/mock/goodsDetail',
		data,
	})
}

const updateCollectionStatus = (data) => {
	return request.post({
		url: '/mock/updateCollectionStatus',
		data,
		auth: true
	})
}

export default {
	updataCartChecked,
	updataAddToCartNum,
	goodsDetail,
	updateCollectionStatus,
}